package com.ktjy.mapper.impl;


import com.ktjy.entity.User;
import com.ktjy.mapper.UserMapper;
import com.ktjy.util.MybatisUtil;

public class UserMapperImpl implements UserMapper {

    @Override
    public int insert(User user) {
        return MybatisUtil.createSession().getMapper(UserMapper.class).insert(user);
    }

    @Override
    public int update(User user) {
        return MybatisUtil.createSession().getMapper(UserMapper.class).update(user);
    }

    @Override
    public User selectByUserName(String userName) {
        return MybatisUtil.createSession().getMapper(UserMapper.class).selectByUserName(userName);
    }
}
